//
//  Connection.h
//  ClienteHabitueIOS
//
//  Created by Mauro Carreño on 6/1/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
    


@interface DataLoaderConnection : NSObject{
    NSMutableData *responseData;
    NSInteger responseCode;
    SEL failureSelector;
    id callerOfSelector;
    int type;
}

- (id)initWithCaller:(id)caller  failSel:(SEL) failureTarget URL:(NSString*) url andType:(int)typeOfParse;
- (id)initPostWithCaller:(id)caller failSel:(SEL) failureTarget URL:(NSString*) url type:(int)typeOfParse data:(NSString*) dataToPost;
-(void)cancelAllCalls;

@property (nonatomic, unsafe_unretained) SEL failureSelector;
@property (nonatomic, weak) id callerOfSelector;
@property (nonatomic, assign) int type;
@property (nonatomic, assign) NSInteger responseCode;
@property (nonatomic, retain) NSMutableData *responseData;

@end
